from celery.schedules import crontab

result_backend = "redis://localhost:6379/0"

broker_url = "redis://localhost:6379/1"

# 配置周期性任务，　或者定时任务
beat_schedule = {
    'every-5-seconds':
        {
            'task': 'CeleryProject.tasks.say_hi',
            'schedule': 5.0,
        },
    'every-month-26day-9hour': {
        'task': 'CeleryProject.tasks.say_goodbye',
        'schedule': crontab(hour=9, minute=0, day_of_month=True),
    },

}
